package com.kingmed.kmss.common.dto.admin.ums;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * 跟前端确定，是否需要树状结构
 */
@Data
@EqualsAndHashCode(callSuper = false)
@NoArgsConstructor
@AllArgsConstructor
public class MenuDTO implements Serializable {

    private Long id;

    private Long parentId;

    private String title;

    private Integer level;

    private Integer sort;

    private String name;

    @ApiModelProperty("前端名称中文")
    private String nameCn;

    private String icon;

    @ApiModelProperty("菜单路由地址")
    private String path;

    @ApiModelProperty("只有一级菜单是否显示：1=是")
    private Integer showParent;

    @ApiModelProperty("是否在菜单栏显示：1=是")
    private Integer showLink;

    @ApiModelProperty("是否需要缓存：1=是")
    private Integer needCache;

    @ApiModelProperty("创建时间")
    private Date createTime;

    @ApiModelProperty("前端隐藏")
    private Integer hidden;

    @ApiModelProperty("删除标记")
    private Integer deleteFlag;

}
